package com.gxc.dao.jpa;

import com.gxc.entity.User;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author 宫新程
 * @since 2018/12/15 2:15 PM
 */
public interface UserRepository extends JpaRepository<User, Integer> {

  List<User> findByUsername(String username);

  List<User> findByUsernameAndPassword(String username, String password);
}
